'use strict';

/**
 * @ngdoc overview
 * @name uidesignerApp
 * @description
 * # uidesignerApp
 *
 * Main module of the application.
 */
var mainApp = angular.module('CupApp', [
    'ngRoute',
    'ngAnimate',
    'CupCtrl'
]);

mainApp.config(function($routeProvider) {
    $routeProvider.when('/', {
            templateUrl: 'views/home.html',
            controller: 'MainCtrl'

        }).when('/login', {

            templateUrl: 'views/components/login.html',
            controller: 'loginCtrl'

        }).when('/register', {

            templateUrl: 'views/components/register.html',
            controller: 'registerCtrl'

        }).when('/page2', {

            templateUrl: 'views/page2.html',
            controller: 'Page2Ctrl'

        }).when('/page3', {

            templateUrl: 'views/page3.html',
            controller: 'Page3Ctrl'

        }).when('/page4', {

            templateUrl: 'views/page4.html',
            controller: 'Page4Ctrl'

        }).when('/page5', {

            templateUrl: 'views/page5.html',
            controller: 'Page5Ctrl'

        }).when('/page6', {

            templateUrl: 'views/page6.html',
            controller: 'Page6Ctrl'

        }).when('/page7', {

            templateUrl: 'views/page7.html',
            controller: 'Page7Ctrl'

        }).when('/page8', {

            templateUrl: 'views/page8.html',
            controller: 'Page8Ctrl'

        })
        .otherwise({
            redirectTo: '/'
        });
});
